package backstage.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import backstage.app.entity.StudentType;
import backstage.app.mapper.StudentTypeMapper;
import backstage.app.service.StudentTypeService;
@Service
public class StudentTypeServiceImpl extends ServiceImpl<StudentTypeMapper, StudentType> implements StudentTypeService {
	
	@Autowired
	private StudentTypeMapper studentTypeMapper;
	@Override
	public int deleteByPrimaryKey(Integer id) {
		 
		return studentTypeMapper.deleteByPrimaryKey(id);
	}

	@Override
	public StudentType selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return studentTypeMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKey(StudentType studentType) {
		// TODO Auto-generated method stub
		return studentTypeMapper.updateByPrimaryKey(studentType);
	}

}
